package com.kefu.admin.common.globals;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by TWD on 2018/9/29.
 */
@Component
public class ApplicationConstant {

    private static final Logger logger = LoggerFactory.getLogger(ApplicationConstant.class);

    @Value("${app.zookeeper.address:127.0.0.1:2181}")
    public String zookeeperAddress;


    @Value("${app.scheduler.thread.count:10}")
    public int schedulerThreadCount;

    @Value("${spring.application.name:javaapp}")
    public String applicationName;

    @Value("${spring.application.index:0}")
    public int applicationIndex;

    @Value("${spring.profiles.active:dev}")
    public String profile;

    @Value("${spring.application.sjdbc:0}")
    public int sjdbcExecutorSize;

    public ApplicationConstant() {
    }

}
